<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>学生管理系统首页</title>
  </head>
  <body>
  <%--判断HttpSession会话域对象获取的共享数据--%>
  <c:choose>
    <c:when test="${user==null}">
      <a href="/stu/login.jsp">登录</a>
    </c:when>
    <c:otherwise >
      <a href="/stu/addstudent.jsp">添加学生</a>
      <a href="/stu/listStudent">查询学生</a>
    </c:otherwise>
  </c:choose>
  </body>
</html>
